package com.iqiyi.game.ams.ui.controller;

import com.iqiyi.game.ams.ui.dto.ResponseDTO;

/**
 * @author hanbaoyu
 */
public class BaseController {

    protected ResponseDTO success(Object data) {
        return ResponseDTO.success(data);
    }

    protected ResponseDTO error(String message) {
        return ResponseDTO.error(message);
    }

    protected ResponseDTO error(Integer code, String message) {
        return error(code, message);
    }

}
